package cn.cjj.gulimall.search.feign;

import cn.cjj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author CuiJunJie
 * @create 2021/6/29-20:16
 */
@FeignClient("gulimall-product")
public interface ProductFeignService {
    // public R info(@PathVariable("attrId") Long attrId);
    @RequestMapping("/product/attr/info/{attrId}")
    public R getAttrInfo(@PathVariable("attrId") Long attrId);

    // public R getByIds(@RequestParam("brandIds") List<Long> brandIds);
    @RequestMapping("/product/brand/infos")
    public R getBrandInfo(@RequestParam("brandIds") List<Long> brandIds);
}
